package com.meida.zsd.app;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * APP服务
 */
@EnableFeignClients(basePackages = {"com.meida"})
@SpringBootApplication(scanBasePackages = "com.meida")
@RemoteApplicationEventScan(basePackages = "com.meida")
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.meida"})
@EnableKnife4j
public class AppApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(AppApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
